home *** CD-ROM | disk | FTP | other *** search
/ Compendium Deluxe 1 / LSD Compendium Deluxe 1.iso / a / text / manipulation / cv.lha / cv / scripts / Trigraph->ASCII.cvt < prev   
Encoding:
Text File  |  1993-12-31  |  708 b   |  27 lines

  1. /*
  2.  *  TRIGRAPH->ASCII.CVT
  3.  *
  4.  *  The character set of C source programs is contained within seven-bit
  5.  *  ASCII, but is a superset of the ISO 646-1983 Invariant Code Set.
  6.  *  In order to enable programs to be represented in the reduced set,
  7.  *  all occurrences of the following trigraph sequences are replaced by
  8.  *  the corresponding single character.
  9.  *
  10.  *  Taken from THE C PROGRAMMING LANGUAGE by Brian W. Kernighan and
  11.  *  Dennis M.Ritchie, 2nd Edition  p.229
  12.  *
  13.  *  Implementation as CVT scriptfile by Tobias Ferber 1993.
  14.  */
  15.  
  16.  "??=" -> "#";
  17.  "??/" -> "\\";
  18.  "??'" -> "^";
  19.  "??(" -> "[";
  20.  "??)" -> "]";
  21.  "??!" -> "|";
  22.  "??<" -> "{";
  23.  "??>" -> "}";
  24.  "??-" -> "~";
  25.  
  26. // No other such replacements occur.
  27.